<?php
/**
 * Created by PhpStorm.
 * User: jack Wang
 * Date: 2021/12/8
 * Time: 16:23
 */
require  "vendor/autoload.php";

use QL\QueryList;


class QueryData
{
    public function getQuery()
    {
        return new QueryList();
    }

    public function query($url, $rules, $range)
    {
        $rt = QueryList::get($url)
            ->rules($rules)
            ->range($range)
            ->query()
            ->queryData();
        return $rt;
    }
}